package com.designpatterns.command.concrete;

import com.designpatterns.command.command.Command;
import com.designpatterns.command.receiver.Receiver;

/**
 * CommandImpl Class extends Command Interface
 * 
 * @see Command
 * 
 * @author Haiqi.Wang
 * @since 2013-6-9下午1:19:40
 */
public class CommandImpl extends Command {

	/**
	 * Arguments Constructor
	 * 
	 * @param receiver
	 *            {@link Receiver}
	 */
	public CommandImpl(Receiver receiver) {
		super(receiver);
	}

	@Override
	public void execute() {
		receiver.receive();
	}

}
